package com.regent.central.bill.service.storehouse;

import com.regent.central.bill.core.storehouse.StockChange;
import com.regent.central.bill.dto.delivery.DeliverySendStyleDTO;
import com.regent.central.bill.dto.storehouse.ChangeNoAndNewDateDTO;
import com.regent.central.infrastructure.service.DomainService;

import java.util.Date;
import java.util.List;

public interface StockChangeService extends DomainService<StockChange> {

    /**
     * 发货出库
     *
     * @param styles
     * @param storehouseId
     * @throws Exception
     */
    void deliveryOutStock(List<DeliverySendStyleDTO> styles , Boolean insertFlag, String storehouseId, String bossUnitId) ;

    /**
     * 获取
     * @param storehouseId
     * @param date
     * @return
     */
    ChangeNoAndNewDateDTO getMaxChangeNoAndNewDate(String storehouseId, String date);

    /**
     * 获取最后一个变动
     *
     * @param storehouseid
     * @param startDate    某天开始时间
     * @param endDate      某天结束时间
     * @return
     */
    StockChange getLastChange(String storehouseid, String startDate, String endDate);
}
